package cn.jhz.learn.blog.test.core;

import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.jhz.learn.blog.common.bean.JsonData;

@RestController
@RequestMapping("/{blog_id}/photo")
public class PhotoController {
	
	
	@PostMapping
	public JsonData submitPhoto(@PathVariable("blog_id") String blogId) {
		//TODO:待设计VO
		return JsonData.success();
	}
	
	@DeleteMapping("/{photo_id}")
	public JsonData removePhoto(@PathVariable("blog_id") String blogId, @PathVariable("photo_id") Integer photoId) {
		return JsonData.success();
	}
	
	@PutMapping
	public JsonData modifyPhoto(@PathVariable("blog_id") String blogId) {
		//TODO:待设计VO
		return JsonData.success();
	}
	
	@GetMapping("/{photo_id}")
	public JsonData findPhoto(@PathVariable("blog_id") String blogId, @PathVariable("photo_id")Integer photoId) {
		//TODO:待设计VO
		return JsonData.success();
	}
}
